<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page session="false" %>
<html>
<head>
	<title>Home</title>
	
	<link type="text/css" rel="stylesheet" href="<c:url value="/resources/main.css" />">
</head>
<body>

	<c:choose>
		<c:when test="${apiKeyClient.firstName != null}">
			<p>Owner for the API key <b>${apiKeyClient.apiKey}</b></p>
		
			<p>${apiKeyClient.firstName} ${apiKeyClient.lastName}</p>
			<p><fmt:formatDate value="${apiKeyClient.expiration}" pattern="d MMM yyyy hh:mm:ssa" /></p>
		</c:when>
		<c:otherwise>
			No record found
		</c:otherwise>
	</c:choose>

</body>
</html>